﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Rss.aspx.vb" Inherits="Crazyforcoins.Rss"  ContentType="text/xml" %>
<%@ Import Namespace="System.Data" %>
  <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:CoinsConn %>" 
            ProviderName="<%$ ConnectionStrings:CoinsConn.ProviderName %>" 
            SelectCommand="SELECT [ID], [Category], [Title] FROM [Coins]"></asp:SqlDataSource> 

    <asp:Repeater ID="Repeater1" runat="server"  DataSourceID="SqlDataSource1">
    <HeaderTemplate>
    <rss version="2.0">
      <channel>
        <title>List of Coins Discussion</title>
        <description>***COINAGE***</description>
     </HeaderTemplate>
      <ItemTemplate>
      <item>  
               <link> CoinDetail.aspx?ID=<%# FormatForXML(DataBinder.Eval(Container.DataItem, "ID"))%></link>
              <title> <%# FormatForXML(DataBinder.Eval(Container.DataItem, "Title"))%></title>
              <description>
                 Category:<%# FormatForXML(DataBinder.Eval(Container.DataItem, "Category"))%>
           
                </description>
            
            <category> <%# FormatForXML(DataBinder.Eval(Container.DataItem, "Category"))%></category>
       <hr />
        </item>
     
     </ItemTemplate>
     <FooterTemplate>
      </channel>
    </rss>  
  </FooterTemplate>





    </asp:Repeater>
    
    


    


    
    
   
    
       
    


    
       
  